package com.um.springcloud.dubbo.cluster;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author 甘天伟
 * @since 2024/1/24
 * 版权所有 广州优匠科技有限公司
 */
@Getter
@ToString
@AllArgsConstructor
public class DeviceKey implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 设备码
     */
    private String key;

    public static DeviceKey from(String key) {
        return new DeviceKey(key);
    }

}
